package org.cfx.basic.mapper;

import org.cfx.basic.query.BaseQuery;

import java.util.List;

/**
 * @author RTX 9090
 */
public interface BaseMapper<T> {
    void add(T t);
    void update(T t);
    void batchRemove(List<Long> ids);
    void delete(Long id);

    T queryById(Long id);
    List<T> queryAll();
    List<T> queryAllPage(BaseQuery baseQuery);
    Long queryCount(BaseQuery baseQuery);

    /**
     * 查经理
     */
    List<T> queryManager();

    List<T> query();
}
